package com.xintonghua.bussiness.ui.fragment.client.user;

import android.os.Bundle;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.xintonghua.bussiness.R;
import com.xintonghua.bussiness.base.BaseActivity;
import com.xintonghua.bussiness.bean.Contant;
import com.xintonghua.bussiness.bean.HairdressingTestBean;
import com.xintonghua.bussiness.util.GlideUtils;
import com.xintonghua.bussiness.util.JumpUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 客户信息====》美容测试===》美容测试的首页
 */
public class MeiRongTestHomeActivity extends BaseActivity {

    @BindView(R.id.iv_img)
    ImageView ivImg;
    @BindView(R.id.tv_note)
    TextView tvNote;
    @BindView(R.id.btn_start_test)
    Button btnStartTest;
    HairdressingTestBean bean;
    Contant contantbean;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mei_rong_test_home);
        ButterKnife.bind(this);
        onSimpleActionBar();
        setSimpleActionBar("美容测试");
        contantbean=(Contant) JumpUtils.getSerializable(this,"data0");
        bean = (HairdressingTestBean) JumpUtils.getSerializable(this,"data1");
        initUI();
    }
    @Override
    public void initUI() {
        super.initUI();
        GlideUtils.load(this, ivImg, bean.getImg());
        tvNote.setText("" + bean.getNote());
    }
    @OnClick(R.id.btn_start_test)
    public void onViewClicked() {
        Bundle bun=new Bundle();
        bun.putSerializable("data0",contantbean);
        bun.putSerializable("data1",bean);
        JumpUtils.jumptoB(this, MeiRongTestContentActivity.class, bun);
    }
}
